﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
using HR.ProjectX.Models.Entities.Customers;

namespace HR.ProjectX.DAL.Mapping
{
    public class CustomerMap : ClassMap<Customer>
    {
        public CustomerMap()
        {
            Id(x => x.Id).Column("CustomerId");
            Map(x => x.CustomerName);
            Map(x => x.CustomerGender);
            Map(x => x.CustomerEmail);
            Map(x => x.CustomerPhoneNumer);
            Map(x => x.CustomerAddress);
            Map(x => x.CustomerTown);
            Map(x => x.CustomerCountry);
        }
    }
}
